import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/Home'
import Introduce from '../views/Introduce'
import Index from '../components/Index'
import About from '../components/About'



Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/home'
    },


    {
      path: '/home',
      component: Home,
      children:[
        {
            path: 'introduce',
            component: Introduce
        }      
            
      ]
    }
    // {
    //   path: '/index',
    //   component: Index,
    //   children:[
    //     {
    //       path: 'about',
    //       component: About,
    //     },
        
    //   ]
    // },
    
    
  ]
})
